
import { Injectable, Injector } from '@angular/core';
import { NgRepository } from '@farris/devkit';
import { BefRepository, NgVariable } from '@farris/bef';
import { ROBXDEntity } from './entities/robxdentity';

import { ROBXDProxy } from './robxdproxy';

@Injectable()
@NgRepository({
    apiUrl: 'api/fssp/fssc/v1.0/bxdlb_frm',
    entityType: ROBXDEntity
})
export class ROBXDRepository extends BefRepository<ROBXDEntity> {
    public name = 'ROBXDRepository';

    public proxy: ROBXDProxy;
    public paginationInfo = {
        ROBXDEntity: {
            pageSize: 20,
        }
    };
    constructor(injector: Injector) {
        super(injector);
        this.proxy = injector.get(ROBXDProxy, null);
    }
}